package com.jimmy.springcloud;

import com.jimmy.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @version 1.0
 * @ ClassName DeptConsumer80_App
 * <p> TODO
 * @ author JIMMY
 * @ Date 2020/11/15 0015 下午 7:47
 */

@SpringBootApplication
@EnableEurekaClient   //ribbon要用到euruka所以要开启又因feign用了ribbon
//在启动该微服务的时候就能去加载我们的自定义Ribbon配置类，从而使配置生效
//@RibbonClient(name="MICROSERVICECLOUD-DEPT",configuration=MySelfRule.class)
@RibbonClient(name="MICROSERVICECLOUD-DEPT",configuration= MySelfRule.class)
public class DeptConsume_80_App {
    public static void main(String[] args)
    {
        SpringApplication.run(DeptConsume_80_App.class, args);
    }
}
